<nz-list-item [nzActions]="getActions()">
    <nz-list-item-meta
        [nzTitle]="nzTitle"
        [nzAvatar]="nzAvatar"
        [nzDescription]="user.name">
        <ng-template #nzTitle>
            <a routerLink="/{{user.username}}">@{{ user.username }}</a>
        </ng-template>
        <ng-template #nzAvatar>
            <nz-avatar [nzSize]="50" [nzSrc]="user.mediumAvatar ? user.mediumAvatar : null"
                       [nzIcon]="!user.mediumAvatar ? 'user' : null"></nz-avatar>
        </ng-template>
        <ng-template #follow><a (click)="handleFollow(user.id)">关注</a></ng-template>
        <ng-template #cancelFollow><a (click)="handleCancelFollow(user.id)">已关注</a></ng-template>
    </nz-list-item-meta>
</nz-list-item>
